import request from '@/router/axios'

//数据订阅 开始

// 保存
export function subscribeSave(obj) {
    return request({
        url: '/cp/subscribe/sendWayUpdate',
        method: 'post',
        data: obj
    })
}
//查询成员列表
export function allEmployee(query) {
    return request({
        url: 'cp/workemployee/selectAgentEmployee',
        method: 'get',
        params: query
    })
}
// 数据订阅列表
export function dataSubscriptionList(query) {
    return request({
        url: '/cp/subscribe/query',
        method: 'get',
        params: query
    })
}
// 数据订阅开关
export function dataSubscriptionSwitch(query) {
    return request({
        url: '/cp/subscribe/isOrder',
        method: 'get',
        params: query
    })
}

//数据订阅 结束

